package com.common.platform.sys.exception.page;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/global")
public class GlobalController {
    /**
     *
     * 跳转到404页面
     */
    @RequestMapping("/error")
    public String errorPage(){
        return "/404.html";
    }

    /**
     * 跳转到session超时页面
     */
    @RequestMapping("/sessionError")
    public String errorPageInfo(Model model){
        model.addAttribute("tips","登录超时，请重新登录！");
        return "/login.html";
    }


}
